package com.cloudservice.ccs.biz;

import com.cloudservice.ccs.entity.WorkOrder;
import com.cloudservice.ccs.model.WorkOrderConnectQuery;
import com.cloudservice.ccs.model.WorkOrderWithCustomerName;

import java.util.List;
import java.util.Map;

public interface IWorkOrderBiz {
    void save(WorkOrder workOrder);

    void update(Integer id, WorkOrder workOrder);

    void partialUpdate(Integer id, Map<String, Object> fields);

    void delete(Integer id);

    WorkOrder getOne(Integer id);

    List<WorkOrderConnectQuery> getAll();

    List<WorkOrderConnectQuery> getWithConditions(Map<String, Object> conditions);

    WorkOrderConnectQuery queryCustomer(Integer id);

    List<WorkOrderWithCustomerName> queryByCustomerId(Integer customerId);
}
